package com.ailot.cloud.auth.service;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * ClassName:JwtUserDetailsService
 * @date:2021/12/6 16:47
 * @author:litao
 */
public interface JwtUserDetailsService extends UserDetailsService {

    /**
     * 手机验证码登录
     *
     * @param code TYPE:CODE
     * @return UserDetails
     * @throws UsernameNotFoundException
     */
    UserDetails loadUserByPhone(String code) throws UsernameNotFoundException;
}
